import request from '@/utils/request'

// 查询帮助文档列表
export function listCmsHelp(query) {
  return request({
    url: '/cms/cmsHelp/list',
    method: 'get',
    params: query
  })
}

// 查询帮助文档详细
export function getCmsHelp(id) {
  return request({
    url: '/cms/cmsHelp/' + id,
    method: 'get'
  })
}

// 新增帮助文档
export function addCmsHelp(data) {
  return request({
    url: '/cms/cmsHelp',
    method: 'post',
    data: data
  })
}

// 修改帮助文档
export function updateCmsHelp(data) {
  return request({
    url: '/cms/cmsHelp',
    method: 'put',
    data: data
  })
}

// 删除帮助文档
export function delCmsHelp(id) {
  return request({
    url: '/cms/cmsHelp/' + id,
    method: 'delete'
  })
}
